package com.webframe.po;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

public class FileBean 
{
	private CommonsMultipartFile myUpload;

	private String myUploadContentType;

	private String myUploadFileName;

	private String path;

	private String name;

	private String[] paths;
	
	private String moveMode;
	
	private String[] filterFiles;


	public CommonsMultipartFile getMyUpload() {
		return myUpload;
	}

	public void setMyUpload(CommonsMultipartFile myUpload) {
		this.myUpload = myUpload;
		this.myUploadContentType = myUpload.getFileItem().getContentType();
		this.myUploadFileName = myUpload.getFileItem().getName();
	}

	public String getMyUploadContentType() {
		return myUploadContentType;
	}

	public void setMyUploadContentType(String myUploadContentType) {
		this.myUploadContentType = myUploadContentType;
	}

	public String getMyUploadFileName() {
		return myUploadFileName;
	}

	public void setMyUploadFileName(String myUploadFileName) {
		this.myUploadFileName = myUploadFileName;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) throws UnsupportedEncodingException {
		this.path = URLDecoder.decode(path, "UTF-8");
	}

	public String getName() {
		return name;
	}

	public void setName(String fileName) throws UnsupportedEncodingException {
		this.name = URLDecoder.decode(fileName, "UTF-8");
	}

	public String[] getPaths() {
		return paths;
	}

	public void setPaths(String[] paths) {
		this.paths = paths;
	}

	public String getMoveMode() {
		return moveMode;
	}

	public void setMoveMode(String moveMode) {
		this.moveMode = moveMode;
	}

	public String[] getFilterFiles() {
		return filterFiles;
	}

	public void setFilterFiles(String[] filterFiles) {
		this.filterFiles = filterFiles;
	}
	
}
